home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Re: What the hell is THIS?!
- Date: Thu, 18 Jan 1996 01:06:49 GMT
- Organization: BranPaul Systems
- Message-ID: <4dk45c$pdp@gryphon.phoenix.net>
- References: <4d6rgh$rfu@abel.cc.sunysb.edu> <coc-1301960253420001@dal1498.computek.net> <821539645snz@genesis.demon.co.uk>
- NNTP-Posting-Host: dial68.phoenix.net
- X-Newsreader: Moe's Newsreader
-
- Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
-
- >No, it is a pointer to an array of 3 ints.
-
- Hi Lawrence,
-
- I knew what it was, because I read AND understood that part of Deep C
- Secrets. What I don't understand is where one would need something
- like this. I can certainly use a pointer to an int array, but why
- specifically an array of 3? I don't think this buys you anything
- really. The three doesn't magically terminate the array like a nul.
- It doesn't allocate any memory. So why and where and what is wrong
- with just allocating it, if that is what you need?
-
- p = malloc(3 * sizeof(int));
-
-
- Bruce D. Wedding Have Compiler, Will Travel!
- Perspicacious Programming Performed Promptly
- Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
-